<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix='fmt' %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 

<html>

<head>
	<script src="<%=basePath %>/js/jquery/2.0.0/jquery.min.js"></script>
	<link href="<%=basePath %>/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
    <script src="<%=basePath %>/js/bootstrap/3.3.6/bootstrap.min.js"></script>
    <link href="<%=basePath %>/css/fore/style.css" rel="stylesheet">
   
</head>
<html>

<script>
	$.ajax({
		type:"post",
		url:"testAction",
		data:{
			msg:"test1",
		},
		dataType:"html",
		success:function(data){
			
			$("p").html(data);
		},
		error:function(e){
		}
	});
</script>
<p></p>
</html>